package com.itc.bi.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 数据集加工描述
 * @TableName tb_data_process
 */
@TableName(value ="tb_data_process")
@Data
@ApiModel(value = "数据集加工描述")
public class DataProcessEntity implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 数据集id
     */
    @ApiModelProperty(value = "数据集id")
    @TableField(value = "dt_id")
    private Long dtId;

    @ApiModelProperty(value = "数据集id")
    @TableField(value = "page_size")
    private Integer pageSize = 1000;

    /**
     * 数据集加工名称
     */
    @ApiModelProperty(value = "数据集加工名称")
    private String name;

    /**
     * 数据集加工描述
     */
    @ApiModelProperty(value = "数据集加工描述")
    private String description;

    /**
     * 数据集加工名称
     */
    @ApiModelProperty(value = "加工类型")
    @TableField(value = "type")
    private String type;

    /**
     * 数据表名称
     */
    @ApiModelProperty(value = "数据表名称")
    @TableField(value = "table_name")
    private String tableName;

    @ApiModelProperty(value = "版本")
    private String version;

    @ApiModelProperty(value = "完整sql")
    @TableField(value = "full_sql")
    private String fullSql;

    @ApiModelProperty(value = "参数")
    @TableField(value = "param_value")
    private String paramValue;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 创建人
     */
    @TableField(value = "create_by",fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人")
    private String createBy;

    /**
     * 更新人
     */
    @TableField(value = "update_by",fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新人")
    private String updateBy;

    /**
     * 是否删除
     */
    @TableLogic
    @ApiModelProperty(value = "是否删除")
    @TableField(value = "is_deleted")
    private Integer isDeleted=0;

}
